<?php
/**
 * Created by PhpStorm OF Administrator.
 * User: YUYI
 * Date: 2018/7/23 0023
 * Time: 下午 2:09
 * Administrator
 */

namespace app\index\controller;


use think\Controller;

class Log extends Controller
{
    public function index()
    {
        $path = RUNTIME_PATH.'log/'.date('Ym').DS.date('d').'.log';
        $file = file_get_contents($path);
        $index = strrpos($file,'---------------------------------------------------------------');
        $str = substr($file,$index);
        print_r($str);
    }
}